package com.ruoyi.common.enums;

import lombok.Getter;

@Getter
public enum PositionStatusEnum {
    POSITION_ONLINE("正在招人","POSITION_ONLINE") ,
    POSITION_OFFLINE("停止招人","POSITION_OFFLINE");

    private String name ;

    private String code ;

    PositionStatusEnum(String name ,String code) {
        this.name = name ;
        this.code = code ;
    }

    public static String getPositionStatusName (String code) {
        for (PositionStatusEnum value : values()) {
            if (value.getCode().equals(code)) {
                return value.getName() ;
            }
        }
        return "未知" ;
    }
}
